#ifndef sEXECUTE_H_
#define sEXECUTE_H_
/*********************************************************/
class sMsg;

#include "sMsg.h"
#include <Poco/DOM/NodeIterator.h>
#include <string>

#define MAX_BUFFER	4096		// Maximum allowed char buffer for command output
/*********************************************************/
class sExecute : public sMsg
{
private:
	// Friend classes
	friend class sMsg;

	// Variables
	std::string		cmd;			// Command to execute in the system shell

	// Methods
	void deserialize(Poco::XML::NodeIterator&);	// Deserializes an execute job

protected:
public:
	// Control Methods
	virtual std::string serialize() const;		// Serialize the job to an xml string
	virtual void execute();

	// Job Info set/get pairs
	void setCommand(std::string cmd);		// Sets the command for this job
	std::string getCommand() const;			// Returns the command for this job
};
/*********************************************************/
#endif // sEXECUTE_H_
